import cn.jja8.config.tool.Conf;
import cn.jja8.config.tool.YamlConfig;

import java.io.File;
import java.util.*;

public class test4 {

    public static class MyClass{
        @Conf List<File> files = Arrays.asList(new File("a.zip"),new File("b.zip"));
        @Conf Map<String,File> fileMap = new LinkedHashMap<>();
        public MyClass() {
            fileMap.put("red",new File("red.zip"));
            fileMap.put("yellow",new File("yellow.zip"));
        }
    }

    public static void main(String[] args) {
        MyClass myClass = new MyClass();
        new YamlConfig()
                .load(new File("youConfig.yml"))
                .as(myClass)
                .save(new File("youConfig.yml"));
    }
}
